package com.htthorizon.system;

import com.htthorizon.common.security.config.WebMvcConfig;
import com.htthorizon.common.security.interceptor.HeaderInterceptor;
import com.htthorizon.system.controller.RedisController;
import com.htthorizon.system.controller.SysConfigController;
import com.htthorizon.system.service.impl.SysConfigServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.htthorizon.common.security.annotation.EnableCustomConfig;
import com.htthorizon.common.security.annotation.EnableRyFeignClients;
import com.htthorizon.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.Map;
import java.util.Properties;

/**
 * 系统模块
 * 
 * @author mark
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@ComponentScan(basePackages = {"com.htthorizon"})
@EnableScheduling
public class HtSystemApplication
{
    public static void main(String[] args)
    {
        ConfigurableApplicationContext run = SpringApplication.run(HtSystemApplication.class, args);
        WebMvcConfig bean = run.getBean(WebMvcConfig.class);
        HeaderInterceptor headerInterceptor = bean.getHeaderInterceptor();
        System.out.println("(♥◠‿◠)ﾉﾞ  系统模块启动成功   ლ(´ڡ`ლ)ﾞ  ");
//        RedisController bean1 = run.getBean(RedisController.class);
//        bean1.test();
    }
}
